import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import unitOverview from "../views/main/unitoverview.vue"
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: "index",
    name: 'Home',
    component: Home,
    children:[
      {
        path: "/index",
        name: "Index",
        component:unitOverview
      }
    ]
  },
  {
    path:"/scene",
    name:"Scene",
    component:()=>import('./../views/main/scene.vue')
  }
  
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
